package com.weng.cloud.service8881.feign;

//import com.weng.cloud.feign.LifeService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @Author: weng
 * @Date: 2022/2/19
 * @Description: com.weng.cloud.service8881.feign
 */

//@FeignClient可以自动注入ioc
//同name的FeignClient不可重复声明，否则启动报错：feign : weng-cloud-service-8882 已注册
@FeignClient(name="weng-cloud-service-8882")
public interface LifeServiceExt
//        extends LifeService
{
    @RequestMapping(value="/shutDown",method = RequestMethod.GET)
    String shutDown();

    @RequestMapping(value="/timeout",method = RequestMethod.GET)
    String timeout();

    @RequestMapping(value="/retry",method = RequestMethod.GET)
    String retry();
}
